package com.newStart.proxyDemo.staticProxy;

import java.math.BigDecimal;

/**
 * Project: tobe-better-coder
 * Package: com.newStart.staticProxy
 *
 * @author : Mr.xu
 * @date : 2022/8/15 23:11
 */
public class TaoBao implements UsbSell {

    private UsbSell usbSell = new KingUsbSell();

    @Override
    public BigDecimal sell(int amount) {
        BigDecimal price = usbSell.sell(amount);
        //增强型功能
        return price.add(new BigDecimal(10));
    }
}